package com.allwees.core.common.context;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author Daniel
 * @Version 1.0.0
 * @Description
 * @CreateTime 2020/10/14 14:37
 */
@Component
public class EnvironmentHelper {

    @Value("${spring.profiles.active}")
    private String activeProfile;

    public boolean isNotProduct(){
        return !"prod".equals(activeProfile);
    }
}
